<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.lang.Exception"%>
<%@ page import="org.apache.log4j.Logger"%>

<body>
<h1>出错了</h1>
<%
Exception e = (Exception)request.getAttribute("exception");
Logger logger = Logger.getLogger("");
logger.error(e.getMessage(), e);
out.print(e);
%>
</body>
</html>